﻿using System.Web.Mvc;
using Journal.Common.WebApplication;

namespace Journal.Front.Presentation.FilterAttributes
{
    public class FrontAuthorizeAttribute : AuthorizeAttribute
    {
        protected override bool AuthorizeCore(System.Web.HttpContextBase httpContext)
        {
            bool result = base.AuthorizeCore(httpContext);
            var user = BaseApplication.GetLoggedUser();
            return user != null;
        }
    }
}